import requests
from likeshop_api_project.api.login_api import login_model
from likeshop_api_project.base.myBase import Tools


class myWallet_model(Tools):
    path = '/api/user/myWallet'

    # 发送查询任务接口
    def myWallet_action(self, hd):
        myWallet = self.huihua.get(url=self.hosturl + self.path,headers=hd)

        return myWallet.json()



# s = requests.session()
# login = login_model(huihua=s)
# msg = login.login_action(account='17612345678', pwd='admin123', client='4')
# print(msg)
# tokena = msg['data']['token']
# hd = {
#     'token': tokena
# }
# print(hd)
#
# myWallet = myWallet_model(huihua=s)
# msg = myWallet.myWallet_action(hd=hd)
# print(msg)